<?
//include("includes/functions.php");
session_start();
if ( !empty($_POST['q']) ) {
	$searchTerm = urlencode($_POST['q']);
	header("Location: search.php?q=$searchTerm&newSearch=1");
} elseif (!empty($headPassword)) {
	header("Location: login.php?login=1&password=$headPassword");
}
?>